package com.wjc.http;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

import com.wjc.http.util.IO;

public class ContentPump
{
    /**
     * content 定义长度的数据转发
     * 
     * @param inputStream
     * @param outputStream
     * @param size
     * @throws IOException
     * 
     */
    public static void pumpContentStream(InputStream inputStream, OutputStream outputStream, int size) throws IOException
    {
    	if( size <= 0 ) {
    		return;
    	}
        IO.copy(inputStream, outputStream, size);
    }
}
